package cn.b.sky.message.model;

import cn.b.sky.common.model.ImeCommon;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.List;

public class MessageConfigInfo extends ImeCommon implements Serializable {

  /**
   * 
   */
  private static final long serialVersionUID = 1L;

  private String siteCode;

  private String messageCode;// 消息代码

  private Integer instantMessageFlag;// 是否发送即时消息标志

  private Integer emailMessageFlag;// 是否发送邮件消息标志

  private Integer shortMessageFlag;// 是否发送短信消息标志
  
  private Integer wechatMessageFlag;// 是否发送微信消息标志
  
  private Integer smartWatchMessageFlag;// 是否发送智能手表消息标志

  private String languageCode;// 语言代码

  private String messageContent;// 消息内容

  private String messageContents;// 多语言消息内容

  private String receiverUser;

  private String receiverRole;

  private String receiverOrg;

  private String receiverUserName;

  private String receiverRoleName;

  private String receiverOrgName;

  private String paramrters;//参数，测试使用

  private List<MessageReceiverInfo> receivers;

  private List<MessageContentInfo> contents;//消息内容列表

  public String getParamrters() {
    return paramrters;
  }

  public void setParamrters(String paramrters) {
    this.paramrters = paramrters;
  }

  public String getMessageContents() {
    return messageContents;
  }

  public void setMessageContents(String messageContents) {
    this.messageContents = messageContents;
  }

  @Override
  public String getSiteCode() {
    return siteCode;
  }

  @Override
  public void setSiteCode(String siteCode) {
    this.siteCode = siteCode;
  }

  public String getReceiverUserName() {
    return receiverUserName;
  }

  public void setReceiverUserName(String receiverUserName) {
    this.receiverUserName = receiverUserName;
  }

  public String getReceiverOrgName() {
    return receiverOrgName;
  }

  public void setReceiverOrgName(String receiverOrgName) {
    this.receiverOrgName = receiverOrgName;
  }

  public String getReceiverRole() {
    return receiverRole;
  }

  public void setReceiverRole(String receiverRole) {
    this.receiverRole = receiverRole;
  }

  public String getReceiverRoleName() {
    return receiverRoleName;
  }

  public void setReceiverRoleName(String receiverRoleName) {
    this.receiverRoleName = receiverRoleName;
  }

  public String getReceiverUser() {
    return receiverUser;
  }

  public void setReceiverUser(String receiverUser) {
    this.receiverUser = receiverUser;
  }

  public String getReceiverOrg() {
    return receiverOrg;
  }

  public void setReceiverOrg(String receiverOrg) {
    this.receiverOrg = receiverOrg;
  }

  public List<MessageContentInfo> getContents() {
    return contents;
  }

  public void setContents(List<MessageContentInfo> contents) {
    this.contents = contents;
  }

  public List<MessageReceiverInfo> getReceivers() {
    return receivers;
  }

  public void setReceivers(List<MessageReceiverInfo> receivers) {
    this.receivers = receivers;
  }

  public String getMessageCode() {
    return StringUtils.upperCase(messageCode);
  }

  public void setMessageCode(String messageCode) {
    this.messageCode = StringUtils.upperCase(messageCode);
  }

  public Integer getInstantMessageFlag() {
    return instantMessageFlag;
  }

  public void setInstantMessageFlag(Integer instantMessageFlag) {
    this.instantMessageFlag = instantMessageFlag;
  }

  public Integer getEmailMessageFlag() {
    return emailMessageFlag;
  }

  public void setEmailMessageFlag(Integer emailMessageFlag) {
    this.emailMessageFlag = emailMessageFlag;
  }

  public Integer getShortMessageFlag() {
    return shortMessageFlag;
  }

  public void setShortMessageFlag(Integer shortMessageFlag) {
    this.shortMessageFlag = shortMessageFlag;
  }

  @Override
  public String getLanguageCode() {
    return languageCode == null ? "" : languageCode;
  }

  @Override
  public void setLanguageCode(String languageCode) {
    this.languageCode = languageCode;
  }

  public String getMessageContent() {
    return messageContent == null ? "" : messageContent;
  }

  public void setMessageContent(String messageContent) {
    this.messageContent = messageContent;
  }

  public Integer getWechatMessageFlag() {
    return wechatMessageFlag;
  }

  public void setWechatMessageFlag(Integer wechatMessageFlag) {
    this.wechatMessageFlag = wechatMessageFlag;
  }

  public Integer getSmartWatchMessageFlag() {
    return smartWatchMessageFlag;
  }

  public void setSmartWatchMessageFlag(Integer smartWatchMessageFlag) {
    this.smartWatchMessageFlag = smartWatchMessageFlag;
  }
  
  

}
